<?php
class Accountmanager_Model_Deletecomment implements Accountmanager_Data_Mainable{
    
    private $accountmanager_data_deletecomment;
    private $excepted_result;
    private $current_result;
    
    public function main(array $variables = null) {
        $this->accountmanager_data_deletecomment = new Accountmanager_Data_Deletecomment;
        $this->current_result = $this->accountmanager_data_deletecomment->main($variables);
        if(
                $this->current_result == $this->excepted_result
                ){
            header("Location:".SITE_ROOT."zarzadzaj-kontem/zarzadzaj-komentarzami.html");
        }
        else {
            header("Location:".SITE_ROOT."zarzadzaj-kontem/zarzadzaj-komentarzami.html");
        }
    }
    
}
